package com.hoas.quickstart.threads.chapter01.chapter01_7_7;

public class Run {

    public static void main(String[] args) {

        try {
            SynchronizedObject object = new SynchronizedObject();
            MyThread thread = new MyThread(object);
            thread.start();
            Thread.sleep(500);
            thread.stop();
            System.out.println(object.getUsername() + " " + object.getUsername());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }

}
